Skip to content

Add execution report heartbeat alerts - #130

Merged
Pigbibi merged 1 commit into
mainfrom
codex/report-heartbeat
Jun 2, 2026
Merged

Add execution report heartbeat alerts#130
Pigbibi merged 1 commit into
mainfrom
codex/report-heartbeat

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add an Execution Report Heartbeat workflow that checks recent runtime report JSON instead of Cloud Run request success
  • filter reports by platform/service so shared report buckets cannot mask a missing service report
  • document setup and behavior in English and Chinese

Validation

  • python -m py_compile scripts/execution_report_heartbeat.py
  • real read-only GCS smoke with Telegram disabled
  • git diff --check

@Pigbibi
Pigbibi merged commit 956a011 into main Jun 2, 2026
1 check passed
@Pigbibi
Pigbibi deleted the codex/report-heartbeat branch June 2, 2026 12:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8d17d6ba16

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

accepted = []
accepted_by_service: dict[str, tuple[str, dt.datetime, str]] = {}
inspected = []
for uri, updated in sorted_objects[:max_reports]:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Filter by service before capping inspected reports

When CLOUD_RUN_SERVICE_TARGETS_JSON/RUNTIME_HEARTBEAT_REQUIRED_SERVICES points at a shared report bucket, this loop only reads the newest 20 objects globally before applying _payload_matches. If more than 20 newer reports from other services exist in the lookback window, an acceptable report for a required service that is still within the window is never inspected and the workflow alerts/fails as “missing acceptable report” even though the service reported successfully. Keep scanning until all required services are found or apply the limit after service filtering.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant